<form class="form-horizontal" id="form-edit-role">
    <input type="hidden" name="rid" value="{$role.id}">
    <div class="form-group">
        <label class="control-label col-xs-2">角色名称：</label>
        <div class="col-xs-9">
            <input type="text" class="form-control" placeholder="输入角色名称" name="name" value="{$role.name}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-2">角色描述：</label>
        <div class="col-xs-9">
            <textarea rows="3" class="form-control" name="desc" placeholder="输入角色描述信息">{$role.description}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-2">角色权限：</label>
        <div class="col-xs-9">
            {include file="admin/authority"}
        </div>
    </div>

    <div class="form-group">
        <div class="col-xs-offset-2 col-xs-3">
            <button type="button" class="btn btn-success" onclick="ajaxSubmit('form-edit-role', true)">确认编辑</button>
        </div>
    </div>
</form>